<include file="Common/header" />
<!-- 顶部 -->     
<div id="middle">
    <include file="Common/menu" />
    <div class="right" id="mainFrame">
		<div class="right_cont">
			<ul class="breadcrumb">当前位置：
				<a href="javascript:void(0);">首页</a> <span class="divider">/</span>
				<a href="javascript:void(0);">系统管理</a> <span class="divider">/</span>
				修改密码
			</ul>
			<div class="title_right"><strong>基本信息</strong></div>
			<form action="" method="POST" id="addfrom">
				<div style="width: 900px; margin:auto">
					<table class="table table-bordered">
						<tr>
							<td width="20%" class="text-c">旧密码：</td>
							<td>
								<input type="password" name="oldpwds" id="oldpwds" class="span1-3" value="" />
								<span class="usernameabel"></span>
							</td>
						</tr>
						<tr>
							<td width="20%" class="text-c">新密码：</td>
							<td>
								<input type="password" name="password" id="password" class="span1-3" value="" />
								<span class="passwordabel"></span>
							</td>
						</tr>
						<tr>
							<td width="20%" class="text-c">确认密码：</td>
							<td>
								<input type="password" name="password2" id="password2" class="span1-3" value="" />
								<span class="nicknameabel"></span>
							</td>
						</tr>
					</table>
					
					<table  class="margin-bottom-20 table  no-border" >
						<tr>
							<td class="text-center">
								<input type="button" value="确定" class="btn btn-info radius roleSubmit" style="width:80px;" />
							</td>
						</tr>
					</table>
				</div>
			</form>
		</div>     
    </div>
</div>

<script>
	$(document).ready(function(){
		$(".roleSubmit").on('click', function(){
			$.post("pwds.html", $("#addfrom").serialize(), function(data){
				if(data == '修改密码成功'){
					layer.msg(data, {icon: 1, time: 2000});
				}else{
					layer.msg(data, {icon: 2, time: 2000});
				}
			},'json');
		});
	});
</script>
<include file="Common/footer" />
